package com.itheima.ioTest;

import java.io.File;
import java.io.IOException;

public class test {
    public static void main(String[] args) throws IOException {
        //meothd();
        //meothd1();
        File file=new File("C:\\itheima\\aaa");
        boolean mkdirs = file.mkdirs();
        System.out.println(mkdirs);
        boolean delete = file.delete();
        System.out.println(delete);
    }

    public static void meothd1() {
        File file =new File("C:\\itheima\\aaa");
        boolean mkdir = file.mkdir();
        System.out.println(mkdir);
    }

    public static void meothd() throws IOException {
        File file=new File("C:\\itheima\\a.txt");
        boolean newFile = file.createNewFile();
        System.out.println(newFile);
    }
}
